package com.blrs.domain;

import com.blrs.common.annotation.Excel;
import com.blrs.common.core.domain.BaseEntity;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;

import java.util.ArrayList;
import java.util.List;

/**
 * 区域信息对象 sys_area
 * 
 * @author yuxiang.chen
 * @date 2023-08-08
 */
public class SysArea extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** id */
    private String AreaId;

    /** 区域名称 */
    @Excel(name = "区域名称")
    private String AreaName;

    /** 描述 */
    @Excel(name = "描述")
    private String AreaDesc;

    /** 父id */
    @Excel(name = "父id")
    private String ParentId;

    /** 是否隐藏 0:否 1:是 */
    @Excel(name = "是否隐藏")
    private String isShow;

    /** 排序 */
    @Excel(name = "排序")
    private Long OrderBy;
    private List<SysArea> list=new ArrayList<>();

    public List<SysArea> getList() {
        return list;
    }
    private int tree;

    public int getTree() {
        return tree;
    }

    public void setTree(int tree) {
        this.tree = tree;
    }

    public void setList(SysArea area) {
        this.list.add(area);
    }
    public void setList(List<SysArea> areas) {
        this.list=areas;
    }

    public void setIsShow(String isShow)
    {
        this.isShow = isShow;
    }

    public String getIsShow()
    {
        return isShow;
    }
    public void setAreaId(String AreaId)
    {
        this.AreaId = AreaId;
    }

    public String getAreaId() 
    {
        return AreaId;
    }
    public void setAreaName(String AreaName) 
    {
        this.AreaName = AreaName;
    }

    public String getAreaName() 
    {
        return AreaName;
    }
    public void setAreaDesc(String AreaDesc) 
    {
        this.AreaDesc = AreaDesc;
    }

    public String getAreaDesc() 
    {
        return AreaDesc;
    }
    public void setParentId(String ParentId) 
    {
        this.ParentId = ParentId;
    }

    public String getParentId() 
    {
        return ParentId;
    }
    public void setOrderBy(Long OrderBy) 
    {
        this.OrderBy = OrderBy;
    }

    public Long getOrderBy() 
    {
        return OrderBy;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
            .append("AreaId", getAreaId())
            .append("AreaName", getAreaName())
            .append("AreaDesc", getAreaDesc())
            .append("ParentId", getParentId())
            .append("OrderBy", getOrderBy())
            .toString();
    }
}
